package com.cssl.feign.impl;

import com.cssl.feign.UsersService;
import com.cssl.pojo.Users;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.Map;

@Service
public class UsersServiceImpl implements UsersService {
    @Override
    public Map<String, String> map(Map<String, String> map) {
        return new HashMap<>();
    }

    @Override
    public Users find(Users user) {
        user.setUsername("服务已降级");
        return user;
    }

    @Override
    public String login(String username, String password) {
        return "服务已降级";
    }
}
